package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StoreDishRecipeManagementMapper;
import com.ruoyi.system.domain.StoreDishRecipeManagement;
import com.ruoyi.system.service.IStoreDishRecipeManagementService;

/**
 * 门店商品做法管理信息 Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-27
 */
@Service
public class StoreDishRecipeManagementServiceImpl implements IStoreDishRecipeManagementService
{
    @Autowired
    private StoreDishRecipeManagementMapper storeDishRecipeManagementMapper;

    /**
     * 通过id查询门店商品做法管理信息
     *
     * @param id 门店商品做法管理信息主键
     * @return 门店商品做法管理信息
     */
    @Override
    public StoreDishRecipeManagement selectStoreDishRecipeManagementById(Long id)
    {
        return storeDishRecipeManagementMapper.selectStoreDishRecipeManagementById(id);
    }

    /**
     * 通过门店名称查询门店商品做法管理信息列表
     *
     * @param storeName 门店名称
     * @return 门店商品做法管理信息
     */
    @Override
    public List<StoreDishRecipeManagement> selectStoreDishRecipeManagementListByName(String storeName)
    {
        return storeDishRecipeManagementMapper.selectStoreDishRecipeManagementListByName(storeName);
    }

    /**
     * 新增门店商品做法管理信息
     *
     * @param storeDishRecipeManagement 门店商品做法管理信息
     * @return 结果
     */
    @Override
    public int insertStoreDishRecipeManagement(StoreDishRecipeManagement storeDishRecipeManagement)
    {
        return storeDishRecipeManagementMapper.insertStoreDishRecipeManagement(storeDishRecipeManagement);
    }

    /**
     * 修改门店商品做法管理信息
     *
     * @param storeDishRecipeManagement 门店商品做法管理信息
     * @return 结果
     */
    @Override
    public int updateStoreDishRecipeManagement(StoreDishRecipeManagement storeDishRecipeManagement)
    {
        return storeDishRecipeManagementMapper.updateStoreDishRecipeManagement(storeDishRecipeManagement);
    }

    /**
     * 通过id批量删除门店商品做法管理信息
     *
     * @param ids 需要删除的门店商品做法管理信息主键
     * @return 结果
     */
    @Override
    public int deleteStoreDishRecipeManagementByIds(Long[] ids)
    {
        return storeDishRecipeManagementMapper.deleteStoreDishRecipeManagementByIds(ids);
    }

    /**
     * 通过id删除门店商品做法管理信息
     *
     * @param id 门店商品做法管理信息主键
     * @return 结果
     */
    @Override
    public int deleteStoreDishRecipeManagementById(Long id)
    {
        return storeDishRecipeManagementMapper.deleteStoreDishRecipeManagementById(id);
    }
}
